﻿@model HNCSolutions.ViewModel.WebsiteViewModel

@{
    ViewBag.Title = "Thêm Mới WebSite";
}

@using (Html.BeginForm("Create", "Website", FormMethod.Post, new { id = "id-form" }))
{
    @Html.ValidationSummary(true)

    <div class="div_editor">
        <div class="span-3">
            @Html.LabelFor(model => model.Website.LoaiWebsite)
        </div>
        <div>
            @Html.TextBoxFor(model => model.Website.LoaiWebsite, new { @class = "inp-form" })
            @Html.ValidationMessageFor(model => model.Website.LoaiWebsite)
        </div>
    </div>

    <div class="clearfix"></div>
    <div class="full div_editor">
        <ul class="tabs" data-persist="true">
            <li><a href="#view1">Giới thiệu</a></li>
            <li><a href="#view2">Tính năng</a></li>
            <li><a href="#view3">Mẫu Thiết Kế</a></li>
        </ul>
        <div class="tabcontents">
            <div class="fix_tynymce">
                <div id="view1">
                    @Html.TextAreaFor(model => model.Website.GioiThieu)
                    @Html.ValidationMessageFor(model => model.Website.GioiThieu)
                </div>
                <div id="view2">
                    @Html.TextAreaFor(model => model.Website.TinhNang)
                    @Html.ValidationMessageFor(model => model.Website.TinhNang)
                </div>
                <div id="view3">
                    @Html.TextAreaFor(model => model.Website.MauThietKe)
                    @Html.ValidationMessageFor(model => model.Website.MauThietKe)
                </div>
            </div>
        </div>
    </div>

    <p>
        <input type="submit" value="Lưu" class="button" />
    </p>
}

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
    <script src="~/Plugin/tabcontent/tabcontent.js" type="text/javascript"></script>
    <link href="~/Plugin/tabcontent/template1/tabcontent.css" rel="stylesheet" type="text/css" />
    <!-- Place inside the <head> of your HTML -->
    <script type="text/javascript" src="~/Plugin/tinymce/tinymce.min.js"></script>
    <script type="text/javascript" src="~/Scripts/tinymce.config.js"></script>
}
